package com.example.shutdown_v1.repository;

import com.example.shutdown_v1.entity.Shop;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;

@Repository
public interface ShopRepository extends JpaRepository<Shop, Long> {
    Optional<Shop> findByCode(String code);
    List<Shop> findByStatus(Integer status);
}

